#ifndef __TASK_PERIPHERAL_HANDLING_H__
#define __TASK_PERIPHERAL_HANDLING_H__

#define PERIPHERAL_TASK_QUEUE_MAX			192
#define PERIPHERAL_TASK_QUEUE_MAX_MSG_LEN	128

#define PERI_TIME_INTERVAL_AD_DETECT		4									// 128 = 1s

#define PERI_COFING_STORE_INTERVAL	(5 * 128 / PERI_TIME_INTERVAL_AD_DETECT)	// 5s
#define PERI_TIME_BACKLIGHT_DELAY	(16)										// 128 = 1s
#define PERI_ADP_OUT_PWR_OFF_TIME	(7 * 128 / PERI_TIME_INTERVAL_AD_DETECT)	// 7s
#define PERI_USB_PHY_SUSPEND_TIME	(4 * 128 / PERI_TIME_INTERVAL_AD_DETECT)

extern MSG_Q_ID	PeripheralTaskQ;
extern INT8U	screen_saver_enable;

extern void		task_peripheral_handling_entry(void *para);
extern void		task_peripheral_handling_init(void);
extern INT32U	home_rec_mic_icon_status_get(void);

#endif // __TASK_PERIPHERAL_HANDLING_H__
